<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<title><?php echo clearHtml($topicinfo['title']); ?>|帖子详情页|<?php echo webconfig('WEB_SITE_TITLE'); ?> - Powered by EasySNS!</title>


<meta name="keywords" content="<?php echo $topicinfo['gidtext']; ?>,<?php echo webconfig('WEB_SITE_KEYWORD'); ?>">
<meta name="description" content="<?php echo webconfig('WEB_SITE_DESCRIPTION'); ?>">

<link rel="shortcut icon" href="__PUBLIC__/images/favicon.ico">
  <link rel="stylesheet" type="text/css" href="__CSS__/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
 
  <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/jianyue.css" />


    

		<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

			<script type="text/javascript" src="__PUBLIC__/js/compatibility.js"></script>
		<!--[if lt IE 9]>
		<script type="text/javascript" src="__PUBLIC__/js/html5shiv.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/respond.min.js"></script>
		<![endif]-->
</head>
<body>

<script type="text/javascript">
var G_POST_HASH="<?php echo session_id(); ?>";
	var G_BASE_URL = "<?php echo webconfig('web_url'); ?>";
	var G_USER_ID = "<?php echo $nowuid; ?>";
	var G_USER_NAME = "<?php echo $userinfo['nickname']; ?>";
	</script>
<div class="aw-top-menu-wrap">

    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href="<?php echo es_url('Index/index'); ?>" id="logo">
                <img src="__PUBLIC_IMG__/logoblack.png"/>
            </a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box ">
            <form class="navbar-search" action="<?php echo es_url('search/index'); ?>" id="global_search_form" method="post">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q"
                       id="aw-search-query">
                <span title="搜索" id="global_search_btns" onclick="$('#global_search_form').submit();"><i
                        class="iconfont icon-chazhao"></i></span>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list hide"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$('#global_search_form').submit();"></a></p>
                    </div>

                </div>
            </form>
            <a href="javascript:search(0);" class="search-close">关闭</a>
        </div>
        <script type="text/javascript">
            function search(s) {

                if (s == 1) {
                    var height = $('.aw-top-nav').height() - 16;

                    $('#xiaosou').fadeOut();

                    $('.headnav').find('.hidden-xs').hide();

                    $('.aw-search-box').show().animate({top: height}, 300);
                } else {
                    $('#xiaosou').fadeIn();
                    $('.headnav').find('.hidden-xs').show();
                    $('.aw-search-box').stop().fadeOut();
                }
            }
        </script>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">

                    <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <?php if($vo['pid'] == '1'): ?>
                    <li>
                        <a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" target="<?php echo $vo['target']; ?>" title="<?php echo $vo['alias']; ?>" <?php if(true == getnavactive(getnavlink($vo['link'],$vo['sid']))): ?>class="active" <?php endif; ?>><i
                            class="iconfont icon-<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a>
                    </li>
                    <?php endif; ?>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    <?php if(session('member_info')): ?>
                    <li>
                        <a href="<?php echo es_url('user/mess'); ?>" class=""><i class="iconfont icon-remind1"></i> 通知</a>
                        <?php if($messcount > 0): ?>
                        <span class="badge badge-important" id="notifications_unread"><?php echo $messcount; ?></span>
                        <?php endif; ?>
                        <div class="aw-dropdown pull-right hidden-xs">
                            <div class="mod-body">
                                <ul id="header_notification_list">

                                    <?php if($messlist): ?>

                                    <?php if(is_array($messlist)): $i = 0; $__LIST__ = $messlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <li>
                                        <h3 class="title">
                                            <i class="iconfont icon-remind"></i> <?php echo $vo['messname']; ?>&nbsp;&nbsp;<span
                                                class="time"><?php echo friendlyDate($vo['update_time']); ?></span>


                                        </h3>

                                        <p class="msg-body"><?php echo $vo['content']; ?>
                                        </p>

                                    </li>

                                    <?php endforeach; endif; else: echo "" ;endif; ?>


                                    <?php else: ?>

                                    <p class="aw-padding10" align="center">没有未读通知</p>
                                    <?php endif; ?>


                                </ul>
                            </div>
                            <div class="mod-footer">
                                <a href="<?php echo es_url('user/mess'); ?>">查看全部</a>
                            </div>
                        </div>
                    </li>
                    <?php endif; ?>


                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->

        <?php if(session('member_info')): ?>
        <div class="aw-user-nav">

            <a href="javascript:;" class="aw-user-nav-dropdown">
                <img alt="<?php echo $userinfo['nickname']; ?>" src="<?php echo getheadurl($userinfo['userhead']); ?>">

            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <?php if($userinfo['is_inside'] == 1): ?>
                    <li class=""><a href="<?php echo webconfig('web_url'); ?>admin.php" target="_blank"> 管理后台</a></li>
                    <?php endif; ?>
                    <li class=""><a href="<?php echo es_url('user/home',array('id'=>$userinfo['id'])); ?>"><i
                            class="iconfont icon-fenlei"></i> 主页</a></li>
                    <li class=""><a href="<?php echo es_url('user/mess'); ?>"><i class="iconfont icon-remind"></i> 消息</a></li>
                    <li class=""><a href="<?php echo es_url('user/mytopic'); ?>"><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>

                    <li><a href="<?php echo es_url('user/index'); ?>"><i class="iconfont icon-shezhi"></i> 设置</a></li>
                    <li><a href="javascript:;" data-url="<?php echo es_url('user/logout'); ?>" class="logoutajax" target="_blank"><i
                            class="iconfont icon-close"></i> 退出</a></li>
                </ul>
            </div>

        </div>
        <div class="aw-publish-btn">
            <a id="header_publish" href="<?php echo es_url('topic/topicadd'); ?>" class="btn-primary">
                <i class="iconfont icon-fabu2"></i>发布</a>

        </div>
        <?php else: ?>
        <div class="aw-user-nav">

            <a class="btn-primary btnst " href="<?php echo es_url('user/login'); ?>">登录</a>
            <span class="or">or</span>
            <a class="register btn-success btnst" href="<?php echo es_url('user/register'); ?>">注册</a>
            <!-- end 登陆&注册栏 -->
        </div>


        <?php endif; ?>


    </div>
    <div class="headnav" id="fudao" style="">
        <div class="container">

            <ul class="">

                <?php if(is_array($topiccatelist)): $i = 0;$__LIST__ = is_array($topiccatelist) ? array_slice($topiccatelist,0,10, true) : $topiccatelist->slice(0,10, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li class="xs <?php if($cateinfo['id'] == $vo['id']): ?>active<?php endif; ?>">
                <a href="<?php echo es_url('topic/cindex',array('id'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="pull-right" id="xiaosou"><a href="javascript:search(1);" class="search"><i
                        class="icon icon-search"></i>&nbsp;搜索</a></li>


            </ul>
        </div>
    </div>

</div>

  

<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- 话题推荐bar -->
                    <!-- 话题推荐bar -->
                    <!-- 话题bar -->
                    <div class="aw-mod aw-topic-bar" id="question_topic_editor" data-type="question"
                         data-id="<?php echo $topicinfo['id']; ?>">


                        <div class="">
                            <a class="aw-user-name aw-user-name-o visible-xs" data-id="<?php echo $topicuserinfo['id']; ?>"
                               href="<?php echo es_url('user/home',array('id'=>$topicuserinfo['id'])); ?>" rel="nofollow">
                                <img src="<?php echo getheadurl($topicuserinfo['userhead']); ?>" alt="<?php echo $topicuserinfo['nickname']; ?>">
                                <p><?php echo $topicuserinfo['nickname']; ?></p>

                                <?php if($topicuserinfo['rzicon'] != 1): ?>
                                <i class="iconfont <?php echo $topicuserinfo['rzicon']; ?>" <?php if($topicuserinfo['rzuser']['type'] == 1): ?>title="个人认证" [else/}title="企业认证"<?php endif; ?>></i>
                                <p><?php echo $topicuserinfo['rzuser']['statusdes']; ?></p>
                                <?php endif; ?>
                            </a>


                        </div>

                        <div class="tag-bar clearfix">

                            <?php if($topicinfo['gidtext']): ?>
                            <?php if(is_array($htlist)): $i = 0; $__LIST__ = $htlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$subvo): $mod = ($i % 2 );++$i;?>
                            <span class="topic-tag">
				<a class="text" href="<?php echo es_url('Topic/index',array('name'=>$subvo)); ?>"><?php echo $subvo; ?></a>
				</span>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                            <?php endif; ?>
                            <?php if($topicinfo['settop'] == 1): ?><span
                                class="label label-danger es-margin-r-5">置顶</span><?php endif; ?>
                            <?php if($topicinfo['choice'] == 1): ?><span class="label label-success">荐</span> <?php endif; ?>


                        </div>
                    </div>
                    <!-- end 话题bar -->
                    <div class="aw-mod aw-question-detail aw-item">
                        <div class="mod-head">
                            <div class="biaoboxs pull-right hidden-xs">

                            </div>

                            <span class="font24"><?php echo $topicinfo['title']; ?></span>

                            <?php echo hook('threadbanzhu', array('info'=>$topicinfo)); ?>

                            <?php if(session('member_info') AND ($uid != $topicinfo['uid'])): ?>

                            <div class="operate clearfix">

                                <div class="zanbox pull-right" style="margin:0px;">
                                    <a data-placement="top" data-toggle="tooltip" title="点亮帖子" class=""
                                       onclick="AWS.User.agree_topic(this, <?php echo $topicinfo['id']; ?>)">
                                        <i class="iconfont icon-zan2"></i><span
                                            class="dianzan"><?php echo $topicinfo['praise']; ?></span>
                                    </a>
                                </div>

                                <?php if($topicinfo['hassc'] == 1): ?>
                                <a href="javascript:;" onclick="AWS.User.follow($(this), 'topic', <?php echo $topicinfo['id']; ?>);"
                                   class="follow btn btn-normal btn-success pull-left active"><span>取消关注</span>
                                    <em>|</em> <b><?php echo $topicinfo['focuscount']; ?></b></a>
                                <?php else: ?>
                                <a href="javascript:;" onclick="AWS.User.follow($(this), 'topic', <?php echo $topicinfo['id']; ?>);"
                                   class="follow btn btn-normal btn-success pull-left "><span>关注</span> <em>|</em> <b><?php echo $topicinfo['focuscount']; ?></b></a>

                                <?php endif; ?>
                            </div>
                            <?php endif; ?>
                        </div>
                        <div class="mod-body">

                            <div id="content-fox" class="content markitup-box font14 line-big">
                                <style>
                                    #content-fox img {
                                        max-width: 100%;
                                    }

                                </style>
                                <?php echo htmlspecialchars_decode($topicinfo['content']); ?>


                                <?php echo hook('Topicfileview', array('info'=>$topicinfo)); ?>

                                <?php echo hook('biaotai', array('info'=>$topicinfo)); ?>

                            </div>

                            <?php if($topicinfo['update_time'] > 0): ?>
                            <div class="text-center" style="font-size:12px;padding:20px;color: #919191;">
                                本帖最后编辑于<?php echo friendlyDate($topicinfo['update_time']); ?>

                            </div>
                            <?php endif; ?>
                            <span class="text-color-999 pull-right" style="margin: 0 10px">
                                <?php if($vo['content'] != '帖子内容已被屏蔽'): ?>
                                    <a class="" href="javascript:tipOffsInfo(<?php echo $topicuserinfo['id']; ?>,'<?php echo $topicuserinfo['nickname']; ?>', '<?php echo getheadurl($topicuserinfo['userhead']); ?>',<?php echo $topicinfo['id']; ?>,'<?php echo $topicinfo['content']; ?>',2);">举报</a>
                                <?php endif; ?>
                            </span>

                        </div>

                    </div>

                    <div class="aw-mod aw-question-comment">
                        <div class="mod-head">
                            <ul class="nav nav-tabs aw-nav-tabs active">
                                <?php if(session('member_info')): ?>
                                <li <?php if($ctype == 3): ?>class="active"
                                <?php endif; ?>>
                                <a href="<?php echo es_url('Topic/gview',array('id'=>$topicinfo['id'],'ctype'=>3)); ?>">关注的人</a></li>
                                <?php endif; ?>
                                <li <?php if($ctype == 1): ?>class="active"
                                    <?php endif; ?>><a
                                    href="<?php echo es_url('Topic/gview',array('id'=>$topicinfo['id'],'ctype'=>1,'asc'=>$asc)); ?>">时间
                                <?php if($ctype == 1): ?>
                                <?php if($asc == 1): ?><i class="iconfont icon-xia font12"></i><?php else: ?><i
                                        class="iconfont icon-shang font12"></i><?php endif; ?><?php endif; ?>


                            </a></li>
                                <li <?php if($ctype == 2): ?>class="active" <?php endif; ?>><a href="<?php echo es_url('Topic/gview',array('id'=>$topicinfo['id'],'ctype'=>2,'asc'=>$asc)); ?>">票数
                                <?php if($ctype == 2): ?>
                                <?php if($asc == 1): ?><i class="iconfont icon-xia font12"></i><?php else: ?><i
                                        class="iconfont icon-shang font12"></i><?php endif; ?><?php endif; ?></a></li>


                                <h2 class="hidden-xs"><?php echo $commentlistcount; ?> 个回复</h2>
                            </ul>

                        </div>
                        <div class="mod-body aw-feed-list">


                            <?php if(is_array($commentlist)): $i = 0; $__LIST__ = $commentlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <div class="aw-item" id="answer_list_<?php echo $vo['id']; ?>">
                                <div class="mod-head">
                                    <a class="anchor" name="answer_<?php echo $vo['uid']; ?>"></a>
                                    <!-- 用户头像 -->

                                    <a class="aw-user-img aw-border-radius-5"
                                       data-id="<?php echo $vo['uid']; ?>" href="<?php echo es_url('user/home',array('id'=>$vo['uid'])); ?>"><img
                                            src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>"></a>
                                    <!-- end 用户头像 -->
                                    <div class="title">
                                        <p>
                                            <a class="aw-user-name" data-id="<?php echo $vo['uid']; ?>"
                                               href="<?php echo es_url('user/home',array('id'=>$vo['uid'])); ?>"><?php echo $vo['nickname']; ?></a>
                                            <span class="pull-right">
<?php if($uid == $vo['uid']): ?>
<a href="javascript:;" onclick="AWS.User.remove_ding_comment($(this).parent(), <?php echo $vo['id']; ?>);">删除</a>
<?php endif; ?>

</span>
                                        </p>
                                        <p class="text-color-999 aw-agree-by">
                                            <?php if($vo['dinguser']): ?>
                                            赞同来自:
                                            <?php if(is_array($vo['dinguser'])): $i = 0; $__LIST__ = $vo['dinguser'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$dingvo): $mod = ($i % 2 );++$i;?>
                                            <?php if($i == 1): ?><a data-id="<?php echo $dingvo['uid']; ?>"
                                                                       href="<?php echo es_url('user/home',array('id'=>$dingvo['uid'])); ?>"
                                                                       class="aw-user-name"><?php echo $dingvo['nickname']; ?></a><?php else: ?><em>、</em><a
                                                data-id="<?php echo $dingvo['uid']; ?>"
                                                href="<?php echo es_url('user/home',array('id'=>$dingvo['uid'])); ?>"
                                                class="aw-user-name"><?php echo $dingvo['nickname']; ?></a><?php endif; ?>


                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                            <?php endif; ?>
                                        </p>
                                    </div>
                                </div>

                                <div class="mod-body clearfix">
                                    <!-- 评论内容 -->
                                    <div class="markitup-box">
                                        <style>
                                            .markitup-box img{max-width: 100%;}
                                        </style>
                                        <?php echo shildContent(htmlspecialchars_decode($vo['content']),$vo['status'],0); ?>
                                    </div>


                                    <!-- end 评论内容 -->
                                </div>
                                <div class="mod-footer">
                                    <!-- 社交操作 -->
                                    <div class="meta clearfix">
                                        <span class="text-color-999 pull-right" style="margin: 0 10px">
                                            <?php if($vo['content'] != '帖子内容已被屏蔽'): ?>
                                                <a class="" href="javascript:tipOffsInfo(<?php echo $vo['uid']; ?>,'<?php echo $vo['nickname']; ?>', '<?php echo getheadurl($vo['userhead']); ?>',<?php echo $vo['id']; ?>,'<?php echo $vo['content']; ?>',0);">举报</a></span>
                                            <?php endif; ?>
                                        <span class="text-color-999 pull-right"><?php echo friendlyDate($vo['create_time']); ?></span>
                                        <!-- 投票栏 -->
                                        <span class="operate">
								<a data-placement="bottom" data-toggle="tooltip" title="赞同回复" class="agree  disabled"
                                   onclick="AWS.User.agree_vote(this, <?php echo $vo['id']; ?>,'<?php echo $userinfo['nickname']; ?>')">
								<i class="iconfont icon-zan2"></i> 
								<b class="count"><?php echo $vo['ding']; ?></b>
								</a>
								</span>
                                        <span class="operate">
								<a data-placement="bottom" data-toggle="tooltip" title="对回复持反对意见" class="disagree "
                                   onclick="AWS.User.disagree_vote(this, <?php echo $vo['id']; ?>,'<?php echo $userinfo['nickname']; ?>')">
								<i class="iconfont icon-zan3"></i> <b class="count"><?php echo $vo['cai']; ?></b></a>
								</span>
                                        <!-- end 投票栏 -->
                                        <span class="operate">
										<a class="aw-add-comment " data-id="<?php echo $vo['id']; ?>" data-type="answer"
                                           data-comment-count="<?php echo $vo['subcount']; ?>" data-first-click="" href="javascript:;">
										<i class="iconfont icon-pinglun1"></i> <?php echo $vo['subcount']; ?></a>
										</span>


                                    </div>
                                    <!-- end 社交操作 -->

                                </div>
                            </div>

                            <?php endforeach; endif; else: echo "" ;endif; ?>


                        </div>

                        <div class="mod-footer">
                            <div class="page-control">
                                <?php echo $commentlistpage; ?>
                            </div>
                        </div>
                    </div>
                    <!-- end 问题详细模块 -->

                    <!-- 回复编辑器 -->
                    <div class="aw-mod aw-replay-box question">
                        <?php if(session('member_info')): ?>
                        <div class="mod-body">
                            <form id="post-thread-form" class="post-thread-form thread-form hz-unlogin-editor "
                                  method="post" post-url="#">
                                <div class="aw-mod aw-editor-box">
                                    <div class="">
                                        <div class="wmd-panel">
							            <textarea name="content" rows="10" id="post_content" class="form-control">
              </textarea>

                                            <?php echo hook('ArticleEditor', array('name'=> 'content','number'=>10000,'value'=>
                                            '','items'=>json_encode(array('bold',
                                            'italic','underline','|','emoticons','image')))); ?>


                                        </div>
                                    </div>
                                    <div class="mod-body clearfix">
                                        <button id="post-thread-btn" data-url="<?php echo es_url('Topic/commentadd'); ?>"
                                                type="button"
                                                class="post-thread-btn btn btn-primary pull-right ajax-post">回复
                                        </button>
                                        <span class="pull-right text-color-999"
                                              id="answer_content_message">&nbsp;</span>
                                    </div>
                                </div>
                                <input type="hidden" name="pidcontent" id="pidcontent" value="0">
                                <input type="hidden" name="fid" value="<?php echo $topicinfo['id']; ?>">
                                <input type="hidden" name="pid" value="0" id="replypid">
                            </form>
                        </div>
                        <?php else: ?>
                        <p align="center">要回复讨论请先<a href="<?php echo es_url('user/login'); ?>">登录</a>或<a
                                href="<?php echo es_url('user/register'); ?>">注册</a></p>

                        <?php endif; ?>
                    </div>
                    <!-- end 回复编辑器 -->
                </div>
                <!-- 侧边栏 -->
                <div class="col-md-3 aw-side-bar hidden-xs hidden-sm">
                    <!-- 发起人 -->
                    <div class="aw-mod">
                        <div class="mod-head">
                            <h3>发帖人</h3>
                        </div>
                        <div class="mod-body">
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="<?php echo es_url('user/home',array('id'=>$topicuserinfo['id'])); ?>"><img
                                            src="<?php echo getheadurl($topicuserinfo['userhead']); ?>"
                                            alt="<?php echo $topicuserinfo['nickname']; ?>"></a>
                                </dt>
                                <dd class="pull-left">
                                    <a class="aw-user-name es-font14"
                                       href="<?php echo es_url('user/home',array('id'=>$topicuserinfo['id'])); ?>"
                                       data-id="<?php echo $topicuserinfo['id']; ?>"><?php echo $topicuserinfo['nickname']; ?></a>
                                    <?php if($topicuserinfo['rzicon'] != 1): ?>
                                    <i class="iconfont <?php echo $topicuserinfo['rzicon']; ?>" <?php if($topicuserinfo['rzuser']['type'] == 1): ?>title="个人认证" [else/}title="企业认证"<?php endif; ?>></i>
                                    <p><?php echo $topicuserinfo['rzuser']['statusdes']; ?></p>
                                    <?php else: ?>
                                    <p class="text-color-000 es-font12">
                                        <?php echo getusergrade($topicuserinfo['grades'],$topicuserinfo['id']); ?></p>
                                    <p class="text-color-000 es-font12"><?php echo $topicuserinfo['description']; ?></p>
                                    <?php endif; ?>

                                </dd>
                            </dl>

                        </div>
                    </div>
                    <!-- end 发起人 -->
                    <!-- 问题状态 -->
                    <div class="aw-mod question-status">
                        <div class="mod-head">
                            <h3>帖子状态</h3>
                        </div>
                        <div class="mod-body">
                            <ul>
                                <?php if($uid == $topicinfo['uid']): ?>
                                <li><a href="<?php echo es_url('topic/topicedit',array('id'=>$topicinfo['id'])); ?>"
                                       target="_blank">[编辑帖子]</a></li>
                                <?php endif; ?>
                                <li>浏览: <span class="aw-text-color-blue"><?php echo $topicinfo['view']; ?></span></li>
                                <li>关注: <span class="aw-text-color-blue"><?php echo $topicinfo['focuscount']; ?></span> 人</li>

                                <li class="aw-border-radius-5" id="focus_users">
                                    <?php if(is_array($focusinfo)): $i = 0; $__LIST__ = $focusinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a
                                        href="<?php echo es_url('user/home',array('id'=>$vo['uid'])); ?>"><img
                                        src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>" class="aw-user-name"
                                        data-id="<?php echo $vo['uid']; ?>"></a><?php endforeach; endif; else: echo "" ;endif; ?>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!-- end 问题状态 -->

                    <!-- 推荐内容 -->
                    <div class="aw-mod">
                        <div class="mod-head">
                            <h3>推荐内容</h3>
                        </div>
                        <div class="mod-body font-size-12">
                            <ul>
                                <?php if(is_array($znlist)): $i = 0; $__LIST__ = $znlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <li>
                                    <a href="<?php echo es_url('Topic/gview',array('id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
                                </li>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </ul>
                        </div>
                    </div>
                    <!-- end 推荐内容 -->


                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

<div class="aw-footer-wrap">
	<div class="aw-footer">
		<div class="container">
			<div class="row">
				<div class="col-sm-2">
					<h4>站内导航</h4>
					<ul class="list-unstyled">
						   <?php if(is_array($footnav)): $i = 0; $__LIST__ = $footnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

    
<li><a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" title="<?php echo $vo['alias']; ?>" target="<?php echo $vo['target']; ?>"><i class="iconfont icon-<?php echo $vo['icon']; ?>" ></i> <?php echo $vo['name']; ?></a></li>

    <?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>联系合作</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>关注我们</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>友情链接</h4>
					<ul class="list-unstyled">
						
						<?php echo hook('friendLink'); ?> 
					</ul>
				</div>
	 			<div class="col-sm-4">
					<h4>内容许可</h4>
					
				</div>
			</div>
		</div>
		
		<p class="es-margin-t-20">Copyright © 2017 <a href="http://es.imzaker.com">EasySNS内容建站系统</a> 版权所有 <?php echo webconfig('WEB_SITE_TITLE'); ?> <?php echo webconfig('WEB_SITE_ICP'); ?></p>
<p><?php echo html_entity_decode(webconfig('WEB_SITE_FOOTER')); ?></p>
		
	</div>
</div>



<div id="aw-ajax-box" class="aw-ajax-box hidden-xs">
</div>
<a href="javascript:;" id="gotoTop" class="show hidden-xs" style="right: 71.5px;"><i></i></a>







<!--页面JS脚本-->


			<script type="text/javascript" src="__JS__/aws.js"></script>
			<script type="text/javascript" src="__JS__/aw_template.js"></script>
				<script type="text/javascript" src="__JS__/app.js"></script>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.easing.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>


<?php echo hook('TipoffsJavaScriptHook'); ?>
<script>

    $(function () {

        //问题页添加评论
        AWS.Init.init_comment_box('.aw-add-comment');

        $('.reply').click(function () {

            $('#replypid').val($(this).attr('postid'));
            location.href = "#post-thread-form";

        });

        $('.post-thread-btn').click(function () {

            $.post($(this).data('url'), $('form#post-thread-form').serialize(), function (data) {

                if (data.code == 1) {

                    layer.msg(data.msg, {icon: 1, time: 1000}, function () {
                        location.reload();
                    });
                } else {

                    layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});


                }
            });
            return false;


        });


    })

</script>

</body>
</html>